Short answer: you can't. Long answer: write your own diff that can ignore one or either of the operands of the opcodes if they are a numerical immediate value.
I need to compare two binary files and get the output in the form <fileoffset-hex> <file1-byte-hex> <file2-byte-hex> for every different byte.
In this article, we'll talk about different ways to compare binary files in Linux. We may need this when investigating different files for data recovery.
In operating systems that distinguish between text and binary files, diff normally reads and writes all data as text. Use the --binary option to force diff to ...
The diff command will compare two files for you, and highlight the differences. It can even provide a few lines on either side of the changes to provide some ... Comparing Binary Files · Secure Hash Algorithms · Finding the Differences